package com.imooc.sell.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component  
@ConfigurationProperties(prefix = "config")//获取前缀为 config 下的配置信息  
public class ConfigBean {  
  
    private String ip;//名字与配置文件中一致  
  
    private Integer port;  
    
    private String desc;
  
    public String getIp() {  
        return ip;  
    }  
  
    public void setIp(String ip) {  
        this.ip = ip;  
    }  
  
    public Integer getPort() {  
        return port;  
    }  
  
    public void setPort(Integer port) {  
        this.port = port;  
    }

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	@Override
	public String toString() {
		return "ConfigBean [ip=" + ip + ", port=" + port + ", desc=" + desc + "]";
	}

	
	
} 